<?php

// Add the colorbox style sheet
$GLOBALS['TL_CSS'][] = 'assets/jquery/colorbox/'. COLORBOX .'/css/colorbox.min.css||static';

?>

<script type="text/javascript" src="<?php echo TL_ASSETS_URL; ?>assets/jquery/colorbox/<?php echo COLORBOX; ?>/js/colorbox.min.js"></script>
<script type="text/javascript">
  /* <![CDATA[ */
  (function($) {
    $(document).ready(function() {
      $('a[rel^=lightbox]').colorbox({
        // Put custom options here
        loop: false,
        maxWidth: '95%',
        maxHeight: '95%'
      });
    });
  })(jQuery);
  /* ]]> */
</script>
